/*
 * @Author: jqm123 2289662078@qq.com
 * @Date: 2025-06-10 15:02:14
 * @LastEditors: jqm123 2289662078@qq.com
 * @LastEditTime: 2025-08-06 09:06:38
 * @FilePath: /anxinxiu/src/api/modules/store.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from "@/utils/request";

const modules = {
  //商家列表
  getStoreList: (params) =>
    request({
      method: "get",
      url: "/shop/getAllStoresList",
      params,
    }),
  //获取商家详情
  getStoreDetail: (params) =>
    request({
      method: "get",
      url: `/shop/getStoreInfo`,
      params,
    }),
  //获取商店商品分类
  getShopCategory: (params) =>
    request({
      method: "get",
      params,
      url: "/goods/category/count",
    }),
  //商品推荐
  getRecommendList: (params) =>
    request({
      method: "get",
      params,
      url: "/goods/getGoodsList",
    }),
};

export default modules;
